<?php
require("dbinit.php");

$indexTour = $_POST["indexTour"];
$query = "SELECT colEmail, colTourname, colDatestart, colDateend, colPeopleCount FROM ucMaintour where indexTour=" . $indexTour;
$result = mysql_query($query, $link);

if ($result) {
	$row = mysql_fetch_row($result);
	echo "Tips :: Dear " . $row[0] . ", you want to visit " . $row[1] . " during " . $row[2] . " and " . $row[3] . " with " . $row[4] . " friends.";
} else {
	echo "Error :: null, exception.";
}
mysql_close($link);

?>